#ifndef _KEY_H
#define _KEY_H

//GPIOB 23456
#define KEY_GPIO_PORT CW_GPIOB
#define KEY1 GPIO_PIN_4
#define KEY2 GPIO_PIN_2
#define KEY3 GPIO_PIN_5
#define KEY4 GPIO_PIN_6
#define KEY5 GPIO_PIN_3

typedef struct{
    unsigned char KEY_LEFT; //左
    unsigned char KEY_RIGHT; //右
    unsigned char KEY_FUN; //功能键
    unsigned char KEY_UP; //上
    unsigned char KEY_DOWN; //下
}key_t;
extern key_t key_info;
void KEY_INIT(void);
void Key_Process(void);


#endif // !_KEY_H
